#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()
{int M;
    int n;
    cin>>M;
    n=M/1000;
    cout<<"n="<<n<< endl;
    return 0;
}
